package com.sky.service.admin;

import com.sky.dos.EmployeeDO;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.EmployeeByIdVO;
import com.sky.vo.EmployeeLoginVO;
import com.sky.vo.EmployeeVO;

public interface EmployeeService {

    // 修改员工信息
    void editEmpById(EmployeeDTO employeeDTO);

    // 根据id查询员工
    Result<EmployeeByIdVO> getEmpById(Long id);

    // 启用禁用员工
    void startOrStop(Integer status,long id);

    // 员工分页查询
    PageResult<EmployeeVO> empListByPage(EmployeePageQueryDTO employeePageQueryDTO);

    // 新增员工
    Result<String> addEmp(EmployeeDTO employeeDTO);

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Result<EmployeeLoginVO> login(EmployeeLoginDTO employeeLoginDTO);



}
